﻿using Quartz;
using System;
using System.Threading.Tasks;

namespace TiaoTiaoCode.QuartzUI.Jobs
{
    public class TestJob : IJob
    {
        public Task Execute(IJobExecutionContext context)
        {
            var name = context.JobDetail.Key.Name;
            var code = context.JobDetail.Key.Group;

            return Task.Run(() =>
            {
                Console.WriteLine();
                Console.WriteLine($"【{DateTime.Now:yyyy-MM-dd HH:mm:ss}】执行{name}#{code}");
            });

        }
    }
}
